<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <title>申请创建板块 - 极简论坛</title>
    <link rel="stylesheet" href="css/style.css">
</head>
<body>
<div class="container">
    <h1>申请创建板块</h1>
    
    <% if (request.getAttribute("error") != null) { %>
    <div class="error-message"><%= request.getAttribute("error") %></div>
    <% } %>
    
    <% if (request.getAttribute("success") != null) { %>
    <div class="success-message"><%= request.getAttribute("success") %></div>
    <% } %>
    
    <form action="ForumApplicationServlet" method="post">
        <div class="form-group">
            <label for="forumName">板块名称</label>
            <input type="text" id="forumName" name="forumName" required placeholder="请输入板块名称">
        </div>
        <div class="form-group">
            <label for="description">板块描述</label>
            <textarea id="description" name="description" rows="3" required placeholder="请输入板块描述"></textarea>
        </div>
        <div class="form-group">
            <label for="reason">申请理由</label>
            <textarea id="reason" name="reason" rows="5" required placeholder="请输入申请成为板块管理员的理由"></textarea>
        </div>
        <button type="submit">提交申请</button>
    </form>
    
    <p><a href="UserCenterServlet">返回个人中心</a></p>
</div>
</body>
</html>